@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

// 感觉antDesign默认的PageContainer太占上下的高度了，所以准备缩小一点
.customPageContainer {
  .ant-page-header-footer {
    margin-top: 0;
  }
  .ant-page-header {
    padding: 2px 24px 2px 24px;
  }

  .ant-pro-page-container-children-content {
    margin-top: 15px;
  }
}

// 感觉antDesign默认的Collapse太占上下的高度了，所以准备缩小一点
.customCollapse {
  .ant-collapse-header,
  .ant-collapse-arrow {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  .ant-collapse-content-box {
    padding-bottom: 1px !important;
  }
}

// 感觉pro-card作为搜索框，太宽了，所以修改了宽度
.customProCard {
  .ant-pro-card-body {
    padding-top: 20px;
    padding-bottom: 1px;
  }
}

// 感觉默认的upload太宽了，改的窄一点
.customUploadLIstItem {
  .ant-upload-list-item {
    width: 328px;
  }
}

// 感觉抽屉弹出层，上面左侧太宽了。 在邮件模板中用到
.customDrawerBody {
  .ant-drawer-body {
    padding: 0 24px 0 0;
  }
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}
